package com.vhuomai.store.service;

import java.io.InputStream;

public interface StoreService {
    
    String saveFile(byte[] content);

    String saveFile(byte[] content, String ext);

    String saveFileByName(byte[] content, String fileName);
    
    String saveFile(InputStream stream);

    String saveFile(InputStream stream, String ext);
    
    String saveFileByName(InputStream stream, String fileName);

    boolean fileExist(String url);

    void remove(String url);

    InputStream getContent(String url);
    
    String toPublish(String fileName);
}
